<template>
    <div class="main">页面{{num}}</div>
</template>

<script>
export default {
    data() {
        return {
            num: ""
        };
    },
    created() {
        this.num = this.$route.params.id;
        console.log(this.$route.params);
    }
};
</script>

<style>
</style>